﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Square:Shape
    {
        private int a;

        public Square(int a)
        {
            this.A= a;
        }

        public int A { get => a; set => a = value; }

        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine("正方形面积为：" + (a * a));
        }
    }
}
